<?php /* Smarty version 2.6.16, created on 2009-04-22 05:48:12
         compiled from EditPictures.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'str_replace', 'EditPictures.html', 2, false),array('function', 'language', 'EditPictures.html', 18, false),array('function', 'url', 'EditPictures.html', 22, false),array('function', 'img', 'EditPictures.html', 23, false),array('function', 'html_options', 'EditPictures.html', 43, false),array('modifier', 'escape', 'EditPictures.html', 58, false),)), $this); ?>
<?php if ($this->_tpl_vars['iCnt']):  echo smarty_function_str_replace(array('text' => "`viewing_ifrom_ito_out_of_icnt_image`",'iFrom' => ($this->_tpl_vars['iFrom']),'iTo' => ($this->_tpl_vars['iTo']),'iCnt' => ($this->_tpl_vars['iCnt'])), $this);?>

<br/><br/>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<br />
<table style="width:100%;" cellspacing="5" cellpadding="5">
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aitems'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['aitems']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['iKey'] => $this->_tpl_vars['aItem']):
        $this->_foreach['aitems']['iteration']++;
?>
<tr>
    <td style="text-align:left;vertical-align:middle;" class="border2">
        <table style="width:100%;">
        <tr>
            <td style="width:30%;text-align:center;">

                <div style="padding-bottom:8px;">
                    <img src="design/pic/spacer.gif" class="sqr" style="vertical-align:middle;" alt="" width="7" height="7" />
                    <span style="vertical-align:middle;"> <b><?php if ($this->_tpl_vars['aItem']['allow'] == 1):  echo smarty_function_language(array('text' => 'pending_54'), $this); else:  echo smarty_function_language(array('text' => 'approved'), $this); endif; ?></b> </span>
                </div>

                <?php if (! $this->_tpl_vars['aItem']['allow']): ?>
                <a href="<?php echo smarty_function_url(array('link' => 'public.gallery.view','id' => $this->_tpl_vars['aItem']['id']), $this);?>
">
                <?php echo smarty_function_img(array('max_width' => '120','src' => ($this->_tpl_vars['sGImageUrl'])."thumb/".($this->_tpl_vars['aItem']['id']).".jpg",'src_def' => "design/pic/noimage_120.jpg",'style' => "vertical-align:middle;",'class' => 'pic1','onmouseover' => "this.className='pic2';",'onmouseout' => "this.className='pic1';"), $this);?>

                </a>
                <?php else: ?>
                <?php echo smarty_function_img(array('max_width' => '120','src' => ($this->_tpl_vars['sGImageUrl'])."thumb/".($this->_tpl_vars['aItem']['id']).".jpg",'src_def' => "design/pic/noimage_120.jpg",'style' => "vertical-align:middle;",'class' => 'pic1','onmouseover' => "this.className='pic2';",'onmouseout' => "this.className='pic1';"), $this);?>

                <?php endif; ?>
            </td>
            <td style="width:70%;vertical-align:top;font-size:8pt;" class="color">
                <form method="post" action="<?php echo smarty_function_url(array('link' => 'current','id' => $this->_tpl_vars['aItem']['id']), $this);?>
">
                <table style="width:100%;" cellspacing="2" cellpadding="4">
                <tr>
                    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'title'), $this);?>
:</td>
                    <td class="border13">
                        <input type="text" name="val[title]" value="<?php echo $this->_tpl_vars['aItem']['text']; ?>
" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'image_category'), $this);?>
:</td>
                    <td class="border13">
                    	<select name="val[category]" style="width:150px;">
                    		<option value=""><?php echo smarty_function_language(array('text' => 'core.any'), $this);?>
</option>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aCategories'],'selected' => $this->_tpl_vars['aItem']['category']), $this);?>

                    	</select>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;" class="color" nowrap="nowrap"><?php echo smarty_function_language(array('text' => 'Mod_Gallery.who_can_view'), $this);?>
:</td>
                    <td class="border13">
                    	<select name="val[who_view]">
                    		<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aPrivacySettings'],'selected' => $this->_tpl_vars['aItem']['who_view']), $this);?>

                    	</select>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => "Mod_Tag.tags"), $this);?>
:</td>
                    <td class="border13">
                    	<input type="text" name="val[tags]" maxlength="80" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['tags'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" maxlength="75" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input name="act[update]" type="submit" value=" <?php echo smarty_function_language(array('text' => 'update_image'), $this);?>
 " style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
                        <span style="padding-left:10px;vertical-align:middle;"> <a class="link_action" onclick="return sure('');" href="<?php echo smarty_function_url(array('link' => 'current','delete' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'delete'), $this);?>
 ]</a> </span>

                    </td>
                </tr>
                </table>
                </form>
            </td>
        </tr>
        </table>
    </td>
</tr>
<?php endforeach; else: ?>
<tr>
    <td style="width:70%;vertical-align:top;text-align:center;font-size:12px;color:green;font-weight:bold;" class="color"><?php echo smarty_function_language(array('text' => 'you_have_not_added_any_pictures_yet'), $this);?>
</td>
</tr>
<?php endif; unset($_from); ?>
<tr>
<td>
</td></tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>